<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> 
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %>
<trans:initPage module="persselector" />
<logic:present name="cancel">
<script language="JavaScript">
window.close();
</script>
</logic:present>

<logic:present name="save">
<script language="javascript">
opener.after_pers_sel();window.close();
</script>
</logic:present>

<html:form action="/pers/selector">
<table width="90%" align="center" cellpadding="5" cellspacing="1" border="0" bgcolor="#3399CC" class=text_search>
<tr><td class=textalb><trans:showPageMessage label="persselector.searchforaperson" /></td></tr>
<tr><td bgcolor="#FFFFFF"><b><trans:showPageMessage label="persselector.firstorlastname" /></b><html:text property="name" styleClass="text"/>
<br><br>
<b><trans:showPageMessage label="persselector.keyword" />  **</b>: <html:text property="keyword" styleClass="text"/><br>
** <trans:showPageMessage label="persselector.searchesorgaddress" />
<br><br>
<html:submit property="search" styleClass="buton"><trans:showPageMessage label="persselector.search" hide_link="true" /></html:submit>
	</td>
</tr>
<logic:present name="PersSearchResults">
<tr><td bgcolor=#FFFFFF>
<div class=text_searchbold align="center"><trans:showPageMessage label="persselector.searchresults" /></div>
<table width=85% align="center" cellpadding="5" cellspacing="1" border="0" bgcolor="#3399CC" class=text_search>
<tr><th bgcolor=ffffff>
<trans:showPageMessage label="persselector.personname" />
</th>
<th bgcolor=#FFFFFF>
<trans:showPageMessage label="persselector.orgname" />
</th>
</tr>
<logic:iterate scope="request" name="PersSearchResults" id="pers">
<tr>
<td bgcolor=#f9f9f9>
	<html:radio property="selectedPerson" idName="pers" value="id">
	<bean:write name="pers" property="personName"/>
	</html:radio>
</td>
<td bgcolor=#FFFFFF>
	<bean:write name="pers" property="orgName"/>
</td>
</tr>
</logic:iterate>
</table>
</tr>
</logic:present>
<tr>
	<logic:present name="PersSearchResults">
	<td bgcolor="#f9f9f9">
		<div align="center"><html:submit property="save" styleClass="butonsave"><trans:showPageMessage label="persselector.SaveSelected" hide_link="true" /></html:submit>
		&nbsp;&nbsp;&nbsp;
		<html:submit property="cancel" styleClass="butonsave"><trans:showPageMessage label="persselector.cancel" hide_link="true" /></html:submit>
		
		</div>
	</td>
	</logic:present>
</tr><trans:showPageMessage label="translator.showhiddentags"/>
<logic:present name="pagetk">
<tr>
	<td bgcolor="#FFFFFF">
		<trans:showPageMessage label="orgselector.pages" />
		<logic:iterate scope="request" name="pagetk" id="token">
			<html:link page="/pers/selector.do" name="token" property="params">
			<bean:write name="token" property="no"/>
			</html:link>&nbsp;|&nbsp;
		</logic:iterate>
	</td>
</tr>
</logic:present>



</table>
</html:form>

